Skip to content

Update MaterialDesignPopupBoxButton style properties#3936

Merged
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
corvinsz:enhanceBtnStyleInPopupBox
Oct 17, 2025
Merged

Update MaterialDesignPopupBoxButton style properties#3936
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
corvinsz:enhanceBtnStyleInPopupBox

Conversation

@corvinsz
Copy link
Copy Markdown
Member

@corvinsz corvinsz commented Oct 3, 2025

The default style (MaterialDesignPopupBoxButton) for Buttons inside of the PopupBox is behaving a bit weird when it comes to positioning custom content.

For example with an icon the content was always aligned at the top, without the user being able to change that.
I adjusted the style a bit so that:

  1. consumers can adjust the VerticalContentAlignment (by removing the hardcoded Margin of 16,0,16,16)
  2. the Cursor becomes the Hand when hovering over

Before

image

After

image

Modified padding, added cursor, and updated vertical alignment.
@Keboo Keboo added this to the 5.3.1 milestone Oct 17, 2025
@Keboo Keboo merged commit 2ba6a98 into MaterialDesignInXAML:master Oct 17, 2025
2 checks passed
adrbarros added a commit to adrbarros/MaterialDesignInXamlToolkit that referenced this pull request Oct 20, 2025
Update MaterialDesignPopupBoxButton style properties (MaterialDesignInXAML#3936)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants